home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_gnats.idb / usr / freeware / lib / gnats / contrib / sql / Iprms.wkchng.z / Iprms.wkchng
Encoding:
Text File  |  1999-04-16  |  1.0 KB  |  42 lines

  1. #!/bin/sh
  2.  
  3. # set up
  4.  
  5. PATH=.:/bin:/usr/bin:/usr/unsupported/bin:/usr/unsupported/informix/bin
  6. INFORMIXDIR=/usr/unsupported/informix
  7. DBPATH=/users/db/infx
  8. DBTEMP=/tmp
  9.  
  10. export PATH
  11. export INFORMIXDIR
  12. export DBPATH
  13. export DBTEMP
  14.  
  15. BUGDIR=/users/db/reports
  16. INFX=/usr/unsupported/informix/bin
  17.  
  18. # ------------------------------------------------------------------------
  19. # report on 
  20. #   changes in bug statistics, new opens, and state changes  for week
  21. # ------------------------------------------------------------------------
  22.  
  23. for rept in wk_delta wk_open wk_st_chng
  24.   do
  25.   FN=$BUGDIR/$rept`date +%y%m%d`
  26.   $INFX/sacego $rept   | sed -n '7,$p' > $FN
  27.   cat $FN >> $DBTEMP/tmp
  28.   done
  29.  
  30. # ------------------------------------------------------------------------
  31. # report on 
  32. #   open bugs and open enhancement requests
  33. # ------------------------------------------------------------------------
  34.  
  35. for rept in open enhreq 
  36.   do
  37.   cat $DBTEMP/tmp1 >> $DBTEMP/tmp
  38.   FN=$BUGDIR/$rept`date +%y%m%d`
  39.   $INFX/sacego $rept   | sed -n '7,$p' > $FN
  40.   cat $FN >> $DBTEMP/tmp
  41.   done
  42.